var RedisCache = function(prefix){
  
  if(! (prefix instanceof String) { throw Exception{ 
    message: "prefix must be set to a string in order to guarantee conflict-free usage of the cache" }
  }
  this.prefix = prefix;
  
  this.setRedisClient = function(/* redisclient */ client){
    this.redisClient = client;
  }
  
  this.set = function(key, value, callback){
    this.redisClient.set(this.prefix + ":" + key, value, callback);
    
  }
  
  this.get = function(key, callback){
    this.redisClient.set(this.prefix + ":" + key, value, callback);
  }
}

module.exports = RedisCache;